#include "DefaultResource.h"
#include <QString>

DefaultResource::DefaultResource()
    : ResourceBase()
    , m_incomingItem()
    , m_outgoingItem()
{
    initDatas();
}

QMap<IncomeItem, QString> DefaultResource::getIncomingItem()
{
    return m_incomingItem;
}

QMap<OutgointItem, QString> DefaultResource::getOutgointItem()
{
    return m_outgoingItem;
}

void DefaultResource::initDatas()
{
    m_incomingItem.insert(IncomeItem_BaseSalary, QString::fromUtf8("基本工资:"));
    m_incomingItem.insert(IncomeItem_LunchSubSidy, QString::fromUtf8("午餐贴:"));
    m_incomingItem.insert(IncomeItem_TrafficSubSidy, QString::fromUtf8("交通贴:"));
    m_incomingItem.insert(IncomeItem_WorkOverSubSidy, QString::fromUtf8("加班津贴:"));
    m_incomingItem.insert(IncomeItem_WorkOverPay, QString::fromUtf8("加班费:"));
    m_incomingItem.insert(IncomeItem_DutiesPay, QString::fromUtf8("职务工资:"));
    m_incomingItem.insert(IncomeItem_SkillPay, QString::fromUtf8("技能工资:"));
    m_incomingItem.insert(IncomeItem_Meritpay, QString::fromUtf8("绩效工资:"));
    m_incomingItem.insert(IncomeItem_BonusPay, QString::fromUtf8("奖金:"));
    m_incomingItem.insert(IncomeItem_TaxOver, QString::fromUtf8("税后支:"));

    m_outgoingItem.insert(OutgointItem_EndowmentInsurance, QString::fromUtf8("养老保险:"));
    m_outgoingItem.insert(OutgointItem_MedicalInsurance, QString::fromUtf8("医疗保险:"));
    m_outgoingItem.insert(OutgointItem_UnemploymentInsurance, QString::fromUtf8("失业保险:"));
    m_outgoingItem.insert(OutgointItem_HousingFund, QString::fromUtf8("住房公积金:"));
    m_outgoingItem.insert(OutgointItem_BackSocialInsurance, QString::fromUtf8("补缴四金:"));
    m_outgoingItem.insert(OutgointItem_OutPayByDay, QString::fromUtf8("日算扣款:"));
    m_outgoingItem.insert(OutgointItem_Late, QString::fromUtf8("事假/迟到:"));
    m_outgoingItem.insert(OutgointItem_MaritalLeave, QString::fromUtf8("婚/丧假:"));
    m_outgoingItem.insert(OutgointItem_SickLeave, QString::fromUtf8("病/产假:"));
    m_outgoingItem.insert(OutgointItem_BreastFeedingLeave, QString::fromUtf8("产前/哺乳假:"));
    m_outgoingItem.insert(OutgointItem_DeductBeforeTax, QString::fromUtf8("税前扣除:"));
}

